package day05;
//continue的演示
public class ContinueDemo {
    public static void main(String[] args) {
        //输出9的乘法表, 跳过能被3整除的
        for (int num = 1; num <= 9; num++) {
            if (num % 3 == 0) {
                continue;   //跳过循环体中剩余语句而进入下一次循环
            }
            System.out.println(num + "*9=" + num * 9);
        }
        /*
            执行程序:
            num = 1     1*9=9
            num = 2     2*9=18
            num = 3     跳过循环
            num = 4     4*9=36
            num = 5     5*9=45
            num = 6     跳过循环
            num = 7     7*9=63
            num = 8     8*9=72
            num = 9     循环结束
         */
    }
}
